#include "app_message.h"
#include "log.h"
#include "app_common.h"

int main(int argc, char *argv[])
{
    char bytes_data[9] = {1,2,4,'X','X','a','b','c','d'};

    char *json = app_message_bytes2json(bytes_data, 9);
    log_info("json: %s", json);

    char new_bytes_data[100];
    int data_len = app_message_json2bytes(json, new_bytes_data,100);

    app_common_printf_hex(new_bytes_data, data_len);
}